package com.zjw.zy.coreui.fragment.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.zjw.zy.R
import com.zjw.zy.base.BaseRecyclerAdapter
import com.zjw.zy.coreui.fragment.holder.ListTextHolder

/**
 * @author     ：zhong.jw
 * @date       ：Created in 2022/10/8 14:03
 * @description：
 */
class ListDialogAdapter(listener: ItemListener<ListTextHolder>) :
    BaseRecyclerAdapter<String, ListTextHolder>(listener) {

    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ListTextHolder {
        val item = LayoutInflater.from(parent.context)
            .inflate(R.layout.holder_list_dialog_item, parent, false)

        return ListTextHolder(item)
    }

    override fun onBindViewHolder(holder: ListTextHolder, position: Int) {
        super.onBindViewHolder(holder, position)
    }

    override fun getHeadCount(): Int {
        return 3
    }

    override fun getTailCount(): Int {
        return 3
    }
}